<div class="pageContent">
    <form method="post" action="${rc.getContextPath()}/manage/supplier/saveSupplier?type=${type}" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden" name="navTabId" value="${navTabId!''}" />
        <div class="pageFormContent" layoutH="58">
            <fieldset>
                <dl>
                    <dt><@label key="supplier.C,code.C,colon">供应商编号：</@label></dt>
                    <dd>
                        <input name="supplierCode"  warn="<@label key='supplier.C,code.C,remote.M'>供应商编号已经存在</@label>"  type="text" maxlength="20"
                         <#if supplier?? && type=='modify'>value="${supplier.supplierCode!''}" readonly
                         <#else>class="required alphanumeric toUp" remote="${rc.getContextPath()}/manage/supplier/isExistsSupplier"</#if> />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="supplier.C,description.C,colon">供应商描述：</@label></dt>
                    <dd>
                        <input name="supplierText"   class="required" maxlength="60" type="text" <#if supplier??>value="${supplier.supplierText!''}"</#if> />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="contacts.C,colon">联系人：</@label></dt>
                    <dd>
                        <input name="contact"  <#if supplier??>value="${supplier.contact!''}"</#if> maxlength="60"  type="text"/>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="telephone.C,colon">联系电话：</@label></dt>
                    <dd>
                        <input class="phone" name="telephone"  <#if supplier??>value="${supplier.telephone!''}"</#if>  type="text"/>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="address.C,colon">联系地址：</@label></dt>
                    <dd>
                        <input name="address"   <#if supplier??>value="${supplier.address!''}"</#if> maxlength="120"  type="text"/>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="email.C,colon">邮箱：</@label></dt>
                    <dd>
                        <input name="email" class="email" <#if supplier??>value="${supplier.email!''}"</#if>  maxlength="120" type="text"/>
                    </dd>
                </dl>
                <dl>
                    <dt>&nbsp;</dt>
                    <dd>
                        <input type="checkbox" name="lockFlag" value="1"<#if (supplier.lockFlag)?? && (supplier.lockFlag == 1)> checked="true"</#if>><@label key="lock.C">锁定</@label>
                    </dd>
                </dl>
            </fieldset>
        </div>
        <div class="formBar">
        <ul>
            <li><div class="buttonActive"><div class="buttonContent"><button type="submit"><@label key="save.B">保存</@label></button></div></div></li>
            <li>
                <div class="buttonActiveGrey"><div class="buttonContent"><button type="button" class="close"><@label key="cancel.B">取消</@label></button></div></div>
            </li>
        </ul>
    </div>
    </form>
</div>